﻿using AutoMapper;
using Zhaoxi.MongoDBSample.Dtos;
using Zhaoxi.MongoDBSample.Models;

namespace Zhaoxi.MongoDBSample
{
    public class SampleProfile : Profile
    {
        public SampleProfile()
        {
            CreateMap<StudentForCreateOrUpdateDto, Student>()
                .ForMember(student => student.Id, opt => opt.Ignore());
        }
    }
}
